Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R style columns #212

Merged
merged 7 commits into from
Apr 5, 2019
Merged

R style columns #212

merged 7 commits into from
Apr 5, 2019

Conversation

gidden
Copy link
Member

@gidden gidden commented Apr 2, 2019

Please confirm that this PR has done the following:

  • Tests Added
  • Documentation Added
  • Description in RELEASE_NOTES.md Added

Description of PR

Who else has gotten very useful data from very useful colleages in that very pesky R-style data format, where year columns look like X2015 instead of just 2015? Worry no more, pyam has your back!

@gidden gidden requested a review from znicholls April 2, 2019 09:15
@gidden
Copy link
Member Author

gidden commented Apr 2, 2019

Mind taking a look @znicholls? I want to give @danielhuppmann a bit of a break from reviews (at least for one!).

Copy link
Collaborator

@znicholls znicholls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice @gidden ! My only thought may be to have a warning if R-style columns or maybe some more assertions (assert that second is four characters long maybe?) so it's more obvious to people if they do have some weird edge case where their column starts with X and can be thrown to int but isn't meant to be a time (although typing this now that sounds like overkill).

pyam/utils.py Outdated Show resolved Hide resolved
@gidden
Copy link
Member Author

gidden commented Apr 2, 2019

Ok, can do. Errors in CI are not related, FYI.

@znicholls
Copy link
Collaborator

Errors in CI are not related, FYI.

I guessed as much. Do you want me to split my fix from #198 out into a separate PR to see if that helps?

@znicholls
Copy link
Collaborator

Do you want me to split my fix from #198 out into a separate PR to see if that helps?

Ignore that, just looked at the errors properly

@coveralls
Copy link

coveralls commented Apr 2, 2019

Coverage Status

Coverage increased (+0.2%) to 84.942% when pulling 1585c82 on gidden:r-style-columns into 02e2e01 on IAMconsortium:master.

Copy link
Member

@danielhuppmann danielhuppmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice feature @gidden! One suggestion to move the auxiliary function out of format_data() to make that function not even more verbose...

pyam/utils.py Show resolved Hide resolved
@gidden
Copy link
Member Author

gidden commented Apr 5, 2019

tests will fail again because our backends are down from public access..

@gidden
Copy link
Member Author

gidden commented Apr 5, 2019

should be good to go now

@gidden
Copy link
Member Author

gidden commented Apr 5, 2019

once issue discussion resolved with @danielhuppmann

@gidden gidden merged commit c1c0017 into IAMconsortium:master Apr 5, 2019
@gidden gidden deleted the r-style-columns branch April 5, 2019 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants